package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.JsonResult;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void insert(Employee employee, Long[] ids);

    Employee listOne(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);
    PageInfo<Employee> query(QueryObject qo);

    void batchDelete(Long[] ids);

    Employee login(String username, String password) throws Exception;

    Employee selectByName(String username);

    Workbook exportXls(String keyword, Long deptId);

    JsonResult importXls(MultipartFile file) throws IOException;

    void updateEmpStatus(Long id);

    int countNoReadMessageById(Long id);
}
